package com.sky.service;

import com.sky.dto.DishDTO;
import com.sky.dto.DishPageQueryDTO;
import com.sky.entity.Dish;
import com.sky.result.PageResult;
import com.sky.vo.DishVO;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.List;

public interface DishService {
    //新增菜品以及口味数据
    public void saveWithFlavour(DishDTO dishDTO);

    //菜品分页查询
    public PageResult pageQuery(DishPageQueryDTO dishPageQueryDTO);

    //批量删除菜品
    public void deleteBatch(List<Long> ids);

    //根据id查询菜品
    DishVO getByIdWithFlavor(Long id);

    //根据id修改菜品信息以及口味信息
    void updateWithFlavor(DishDTO dishDTO);

    //根据分类id查询菜品
    List<Dish> getByCategoryId(Long categoryId);

    //条件查询菜品和口味
    List<DishVO> listWithFlavor(Dish dish);

    void startOrStop(Integer status,Long id);
}
